<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
</head>

<body>
    <div id="main" style="width: 800px; height: 500px"></div>
    <script src="./echarts.min.js"></script>
    <script>
        const myChart = echarts.init(document.getElementById('main'))
        const option = {
            title: {
                text: '赵爽',
                subtext: '第三组',
            },
            xAxis: {
                type: 'category',
                axisLine: {
                    lineStyle: {
                        color: '#ccc',
                        type: 'dashed',
                    },
                },
                axisLabel: {
                    color: 'green',
                },
                data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
            },
            yAxis: {
                type: 'value',
                splitLine: {
                    lineStyle: {
                        type: 'dashed',
                    },
                },
            },
            color: [{
                type: 'linear',
                x: 0,
                y: 0,
                x2: 0,
                y2: 1,
                colorStops: [{
                    offset: 0,
                    color: 'pink', // 0% 处的颜色
                }, {
                    offset: 1,
                    color: 'skyblue', // 100% 处的颜色
                }, ],
                global: false, // 缺省为 false
            }, {
                type: 'radial',
                x: 0.5,
                y: 0.5,
                r: 0.5,
                colorStops: [{
                    offset: 1,
                    color: 'pink', // 0% 处的颜色
                }, {
                    offset: 0,
                    color: 'skyblue', // 100% 处的颜色
                }, ],
                global: false, // 缺省为 false
            }, ],

            series: [{
                data: [120, 80, 30, 40, 70, 110, 100],
                type: 'bar',
            }, {
                data: [80, 140, 130, 80, 100, 40, 60],
                type: 'bar',
            }, ],
        }
        myChart.setOption(option)
    </script>
</body>

</html>